const wx2my = require('../../../wx2my');
const Behavior = require('../../../Behavior');
var app = getApp();
Page({
  data: {},
  onLoad: function (o) {
    wx2my.setNavigationBarColor({
      frontColor: '#000000',
      backgroundColor: '#ffffff'
    }), this.refresh();
  },
  refresh: function (o) {
    var n = this,
        t = wx2my.getStorageSync("userInfo").id;
    app.util.request({
      url: "entry/wxapp/CountCommission",
      data: {
        user_id: t
      },
      success: function (o) {
        console.log(o), n.setData({
          statistics: o.data
        });
      }
    });
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {}
});